<script setup>
import { ref } from "vue";
defineProps(["modelValue"]);
const emit = defineEmits(["update:modelValue", "change"]);
const ssd=ref()
const handleChange = event => {
  console.log(ssd, 62000);
  emit("update:modelValue", event.target.value);
  emit("change", event.target.value);
};
</script>

<template>
  <div>
    <span>Selected: {{ modelValue }}</span>
    <select :value="modelValue" @change="handleChange" ref="ssd">
      <slot />
    </select>
  </div>
</template>